<?php

namespace App\Notifications;

use App\Channels\SystemChannel;
use App\Models\Content;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class SystemNotify extends Notification
{
    use Queueable;

    public $content;

    public function __construct(Content $content)
    {
        $this->content = $content;
    }


    public function via($notifiable)
    {
        return [SystemChannel::class];
    }


    public function toArray($notifiable)
    {
        return [
            'content_id' => $this->content->id,
            'title' => $this->content->title,
        ];
    }
}
